{include file='common/head' /}
<body>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">
                    <span style="line-height:40px;float: right;">共有数据：{$count} 条</span>
                </div>
                <div class="layui-card-body layui-table-body layui-table-main">
                    <table class="layui-table layui-form">
                        <thead>
                        <tr>
                            <th style="text-align: center;">记录类型</th>
                            <th style="text-align: center;">操作金额</th>
                            <th style="text-align: center;">是否系统操作</th>
                            <th style="text-align: center;">状态</th>
                            <th style="text-align: center;">操作时间</th>
                        </tr>
                        </thead>
                        <tbody>
                        {volist name="list" id="v"}
                        <tr>
                            <td style="text-align: center;">
                                {$v.type_c}
                            </td>
                            <td style="text-align: center;">
                                {if condition="$v['type'] eq 2"}-{else/}+{/if}{$v.num}元
                            </td>
                            <td style="text-align: center;">
                                {if condition="$v['is_sys'] eq 1"}是{else/}否{/if}
                            </td>
                            <td style="text-align: center;">
                                {switch name="v.status"}
                                {case value="1"}等待审核{/case}
                                {case value="2"}审核通过{/case}
                                {case value="3"}成功{/case}
                                {case value="4"}失败{/case}
                                {case value="5"}审核拒绝{/case}
                                {/switch}
                            </td>
                            <td style="text-align: center;">{:date('Y-m-d H:i:s',$v['add_time'])}</td>
                        </tr>
                        {/volist}
                        </tbody>
                    </table>
                </div>
                <div class="layui-card-body ">
                    <div class="page">
                        {$page}
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script>
    layui.use(['form'], function(){
        var  form = layui.form;

        // 监听全选
        form.on('checkbox(checkall)', function(data){
            if(data.elem.checked){
                $('tbody input').prop('checked',true);
            }else{
                $('tbody input').prop('checked',false);
            }
            form.render('checkbox');
        });
    });
</script>
{include file='common/footer' /}